﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ElevatorSimCSharp
{
    class Simulator
    {
        static void Main()
        {
            Building building = new Building(50,0,1);
            while (true) 
            {
                Interactions.movePeopleToElevator(building);
                Interactions.createRandomPerson(building);
                Interactions.moveElevators(building);
                Interactions.findLastFloorToGoTo(building.getElevators(), building.getFloors());
                Interactions.changeDirectionElevator(building.getFloors(), building.getElevators());
                PrintClass.printState(building.getFloors(), building.getElevators());
                System.Threading.Thread.Sleep(300);

                
            }
        }
    }
}
